//
//  PersonListCollectionViewCell.m
//  Product
//
//  Created by git on 16/6/14.
//  Copyright © 2016年 Aim. All rights reserved.
//

#import "PersonListCollectionViewCell.h"
@interface PersonListCollectionViewCell ()
//@property (nonatomic, strong) UIImageView *imgView;
//@property (nonatomic, strong) UILabel *tLabel;
//@property (nonatomic, strong) UILabel *moneyLabel;

@property (nonatomic, assign) CGFloat height;
@end
@implementation PersonListCollectionViewCell

//- (instancetype)initWithFrame:(CGRect)frame
//{
//    if ( self = [super initWithFrame:frame] ) {
//        
//        self.imgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height * 5 / 8)];
//        self.tLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, self.frame.size.height * 5 / 8 + 10, self.frame.size.width - 20, self.frame.size.height * 2 / 8)];
//        self.moneyLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, CGRectGetMaxY(self.tLabel.frame),  30, self.frame.size.height * 1 / 8)];
//        
//        self.tLabel.numberOfLines = 2;
//        self.moneyLabel.textColor = [UIColor redColor];
//        self.PremoneyLab = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(self.tLabel.frame)+20, CGRectGetMaxY(self.tLabel.frame), 50 , self.frame.size.height * 1 / 8)];
//        
//        self.PremoneyLab.font = [UIFont systemFontOfSize:13];
//        self.tLabel.font = [UIFont systemFontOfSize:13];
//        self.moneyLabel.font = [UIFont systemFontOfSize:13];
////        self.moneyLabel.backgroundColor = [UIColor yellowColor];
////        self.PremoneyLab.backgroundColor = [UIColor grayColor];
////        self.tLabel.backgroundColor = [UIColor grayColor];
//        [self.contentView addSubview:self.imgView];
//        [self.contentView addSubview:self.tLabel];
////        [self.contentView addSubview:self.moneyLabel];
////        [self.contentView addSubview:self.PremoneyLab];
//
//    }
//    
//    return self;
//}


//- (void)setJfListInfo:(JiFenListInfo *)jfListInfo
//{
//    if (_jfListInfo != jfListInfo) {
//        
//        _jfListInfo = nil;
//        _jfListInfo = jfListInfo;
//        
//        [self layoutModel];
//    }
//}

//- (void)layoutModel
//{
//    // 负值
//    [self.imageView sd_setImageWithURL:[NSURL URLWithString:_jfListInfo.gift_imge]];
//    self.textLabel.text = _jfListInfo.gift_name;
//    self.moneyLabel.text = [NSString stringWithFormat:@"¥%@", _jfListInfo.gift_integral];
//}

// 重用cell
- (void)prepareForReuse
{
    [super prepareForReuse];
}

// cell属性
//- (UICollectionViewLayoutAttributes *)preferredLayoutAttributesFittingAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
//{
//    self.imgView.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height * 3 / 4);
//    self.tLabel.frame = CGRectMake(10, self.frame.size.height * 5 / 8 + 10, self.frame.size.width - 20, self.frame.size.height * 2 / 8);
//    self.moneyLabel.frame = CGRectMake(10, self.frame.size.height * 7 / 8, self.frame.size.width - 20, self.frame.size.height * 1 / 8);
//    
//    return layoutAttributes;
//}


- (void)awakeFromNib {
    // Initialization code
}

@end
